import { createSSRApp } from "vue";
import pinia from "./stores";
import App from "./App.vue";

/**
 * 创建一个应用实例
 * @returns {Object} 返回包含应用实例的对象
 */
export function createApp() {
  const app = createSSRApp(App);
  // 将 Pinia 实例挂载到 Vue 3 应用中
  app.use(pinia);
  return {
    app,
  };
}
